import request from '@/utils/request'

// 查询BwUser列表
export function listBwUser(query) {
    return request({
        url: '/api/v1/bw/userList',
        method: 'get',
        params: query
    })
}

// 查询BwUser详细
export function getBwUser (userId) {
    return request({
        url: '/api/v1/bw/user/' + userId,
        method: 'get'
    })
}


// 新增BwUser
export function addBwUser(data) {
    return request({
        url: '/api/v1/bw/user',
        method: 'post',
        data: data
    })
}

// 修改BwUser
export function updateBwUser(data) {
    return request({
        url: '/api/v1/bw/user',
        method: 'put',
        data: data
    })
}

// 删除BwUser
export function delBwUser(userId) {
    return request({
        url: '/api/v1/bw/user/' + userId,
        method: 'delete'
    })
}
